<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
	window.top.$('#display_center_id').css('display','none');
</script>
<div class="pad-lr-10">
<form name="searchform" action="" method="get" >
<input type="hidden" value="mentor" name="m">
<input type="hidden" value="mentor" name="c">
<input type="hidden" value="index" name="a">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td><div class="explain-col"><?php echo L('mentor_name')?>：<input name="name" class="input-text" value="<?php echo $_GET['name']?>" type="text" size="20">  <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit"> 
		</div>
		</td>
		</tr>
    </tbody>
</table>
</form>
<form name="myform" action="?m=mentor&c=mentor&a=delete" method="post" onsubmit="return confirm('<?php echo L('mentor_delete')?>')">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th  align="left" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th align="left">ID</th>
			<th align="left"><?php echo L('mentor_name')?></th>
			<th align="left"><?php echo L('mentor_astheunit')?></th>
			<th align="left"><?php echo L('addtime')?></th>
			<th align="left"><?php echo L('addusername')?></th>
			<th align="left"><?php echo L('operation')?></th>
		</tr>
	</thead>
<tbody>
<?php
	foreach($industrial_list as $k=>$v) {
?>
    <tr>
		<td align="left"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>
		<td align="left"><?php echo $v['id']?></td>
		<td align="left"><?php echo $v['name']?></td>
		<td align="left"><?php echo $v['astheunit']?></td>
		<td align="left"><?php echo format::date($v['addtime'], 1)?></td>
		<td align="left"><?php echo $v['addusername']?></td>
		<td align="left">
			<a href="?m=mentor&c=mentor&a=edit&id=<?php echo $v['id']?>">[<?php echo L('edit')?>]</a>
			<a href="?m=mentor&c=mentor&a=delete&id=<?php echo $v['id']?>" onClick="return confirm('确认要删除[<?php echo $v['name']?>]？')">[<?php echo L('delete')?>]</a>
		</td>
    </tr>
<?php
	}

?>
</tbody>
</table>

<div class="btn">
<label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>"/>
<!-- <input type="button" class="button" value="--><?php //echo L('import_collection_points')?><!--" onclick="import_spider()" />-->
</div>

<div id="pages"><?php echo $pages?></div>
</div>
</form>
</div>
<script type="text/javascript">

</script>
</body>
</html>